home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / mint / netlib / include / sockios.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-27  |  2.6 KB  |  62 lines

  1. /*
  2.  *    Definitons for the ioctl() commands on sockets.
  3.  *
  4.  *    09/25/93, kay roemer.
  5.  */
  6.  
  7. #ifndef _SOCKIOS_H
  8. #define _SOCKIOS_H
  9.  
  10. /* socket-level I/O control calls */
  11. #define SIOCGLOWAT    (('S' << 8) | 1)
  12. #define SIOCSLOWAT    (('S' << 8) | 2)
  13. #define SIOCGHIWAT    (('S' << 8) | 3)
  14. #define SIOCSHIWAT    (('S' << 8) | 4)
  15. #define SIOCSPGRP    (('S' << 8) | 5)
  16. #define SIOCGPGRP    (('S' << 8) | 6)
  17. #define SIOCATMARK    (('S' << 8) | 7)
  18.  
  19. /* socket configuration controls */
  20. #define SIOCGIFNAME    (('S' << 8) | 10)    /* get iface name */
  21. #define SIOCSIFLINK    (('S' << 8) | 11)    /* connect iface to device */
  22. #define SIOCGIFCONF    (('S' << 8) | 12)    /* get iface list */
  23. #define SIOCGIFFLAGS    (('S' << 8) | 13)    /* get flags */
  24. #define SIOCSIFFLAGS    (('S' << 8) | 14)    /* set flags */
  25. #define SIOCGIFADDR    (('S' << 8) | 15)    /* get PA address */
  26. #define SIOCSIFADDR    (('S' << 8) | 16)    /* set PA address */
  27. #define SIOCGIFDSTADDR    (('S' << 8) | 17)    /* get remote PA address */
  28. #define SIOCSIFDSTADDR    (('S' << 8) | 18)    /* set remote PA address */
  29. #define SIOCGIFBRDADDR    (('S' << 8) | 19)    /* get broadcast PA address */
  30. #define SIOCSIFBRDADDR    (('S' << 8) | 20)    /* set broadcast PA address */
  31. #define SIOCGIFNETMASK    (('S' << 8) | 21)    /* get network PA mask */
  32. #define SIOCSIFNETMASK    (('S' << 8) | 22)    /* set network PA mask */
  33. #define SIOCGIFMETRIC    (('S' << 8) | 23)    /* get metric */
  34. #define SIOCSIFMETRIC    (('S' << 8) | 24)    /* set metric */
  35. #define SIOCSLNKFLAGS    (('S' << 8) | 25)    /* set link level flags */
  36. #define SIOCGLNKFLAGS    (('S' << 8) | 26)    /* set link level flags */
  37. #define SIOCGIFMTU    (('S' << 8) | 27)    /* get MTU size */
  38. #define SIOCSIFMTU    (('S' << 8) | 28)    /* set MTU size */
  39. #define SIOCGIFSTATS    (('S' << 8) | 29)    /* get interface statistics */
  40. #define SIOCGIFHWADDR    (('S' << 8) | 50)    /* get hardware address */
  41. #define SIOCGLNKSTATS    (('S' << 8) | 51)    /* get link statistics */
  42.  
  43. /* routing table calls */
  44. #define SIOCADDRT    (('S' << 8) | 30)    /* add routing table entry */
  45. #define SIOCDELRT    (('S' << 8) | 31)    /* delete routing table entry */
  46.  
  47. /* ARP cache control calls */
  48. #define SIOCDARP    (('S' << 8) | 40)    /* delete ARP table entry */
  49. #define SIOCGARP    (('S' << 8) | 41)    /* get ARP table entry */
  50. #define SIOCSARP    (('S' << 8) | 42)    /* set ARP table entry */
  51.  
  52. /* structure used with SIOCSIFLINK */
  53. struct iflink {
  54.     char    ifname[16];    /* interface to link device to without unit
  55.                  * number, eg 'sl'. On successful return
  56.                  * the actual interface to which the device
  57.                  * was linked, eg 'sl0', can be found here. */
  58.     char    device[128];    /* device name, eg '/dev/ttya' */
  59. };
  60.  
  61. #endif /* _SOCKIOS_H */
  62.